package com.isp.org.server.interfaces.model.role.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author linsy
 * @version 1.0
 * @created 2024/1/26 11:29
 */
@Data
public class BaseRoleVO {

    @ApiModelProperty("角色编码")
    @JsonProperty("code")
    @NotBlank(message = "角色编码不能为空")
    private String code;

    @ApiModelProperty("角色名称")
    @JsonProperty("name")
    @NotBlank(message = "角色名称不能为空")
    private String name;

    @ApiModelProperty("角色描述")
    @JsonProperty("description")
    private String description;

    @ApiModelProperty("数据权限")
    @JsonProperty("data_scope")
    @NotBlank(message = "数据权限不能为空")
    private String dataScope;

    @ApiModelProperty("app")
    @JsonProperty("app")
    @NotBlank(message = "app不能为空")
    private String app;


}
